package com.arcbbs.service;

import com.arcbbs.entity.ForumArticle;
import com.arcbbs.entity.ForumArticleAttachment;
import com.arcbbs.entity.SessionWebUserDto;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

@Service
public interface ForumArticleAttachmentService {

    ForumArticleAttachment downloadAttachment(String fileId, SessionWebUserDto sessionWebUserDto);

    void postArticle(HttpSession httpSession, ForumArticle forumArticle, ForumArticleAttachment forumArticleAttachment, MultipartFile cover, MultipartFile attachment);
}
